package com.itheima.pojo;

import java.util.List;

public class Role {
    private Integer roleId;
    private String roleName;
    private String roleDetail;

    private List<User> users;


    public Role() {
    }

    public Role(Integer roleId, String roleName, String roleDetail, List<User> users) {
        this.roleId = roleId;
        this.roleName = roleName;
        this.roleDetail = roleDetail;
        this.users = users;
    }

    /**
     * 获取
     * @return roleId
     */
    public Integer getRoleId() {
        return roleId;
    }

    /**
     * 设置
     * @param roleId
     */
    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    /**
     * 获取
     * @return roleName
     */
    public String getRoleName() {
        return roleName;
    }

    /**
     * 设置
     * @param roleName
     */
    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    /**
     * 获取
     * @return roleDetail
     */
    public String getRoleDetail() {
        return roleDetail;
    }

    /**
     * 设置
     * @param roleDetail
     */
    public void setRoleDetail(String roleDetail) {
        this.roleDetail = roleDetail;
    }

    /**
     * 获取
     * @return users
     */
    public List<User> getUsers() {
        return users;
    }

    /**
     * 设置
     * @param users
     */
    public void setUsers(List<User> users) {
        this.users = users;
    }

    public String toString() {
        return "Role{roleId = " + roleId + ", roleName = " + roleName + ", roleDetail = " + roleDetail + ", users = " + users + "}";
    }
}
